<?php
namespace BP\GPM;
require_once("BP/En/Map.php");
class BarEmp extends EntityMyPK {
	public function getIdx () 
	{
		return $this->GetValIntByKey(BarEmpAttr::$Idx);
	}
	public function setIdx ($value) // [int value]
	{
		$this->SetValByKey(BarEmpAttr::$Idx, $value);
	}
	public function getFK_Bar () 
	{
		return $this->GetValStringByKey(BarEmpAttr::$FK_Bar);
	}
	public function setFK_Bar ($value) // [String value]
	{
		$this->SetValByKey(BarEmpAttr::$FK_Bar, $value);
	}
	public function getFK_Emp () 
	{
		return $this->GetValStringByKey(BarEmpAttr::$FK_Emp);
	}
	public function setFK_Emp ($value) // [String value]
	{
		$this->SetValByKey(BarEmpAttr::$FK_Emp, $value);
	}
	public function getIsShow () 
	{
		return $this->GetValBooleanByKey(BarEmpAttr::$IsShow);
	}
	public function setIsShow ($value) // [boolean value]
	{
		$this->SetValByKey(BarEmpAttr::$IsShow, $value);
	}
	public function getTitle () 
	{
		return $this->GetValStringByKey(BarEmpAttr::$Title);
	}
	public function setTitle ($value) // [String value]
	{
		$this->SetValByKey(BarEmpAttr::$Title, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($no) // [String no]
	{
		$me = new self();
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("GPM_BarEmp");
		$map->setDepositaryOfEntity($Depositary->None);
		$map->setDepositaryOfMap($Depositary->Application);
		$map->setEnDesc("人员信息�?");
		$map->setEnType($EnType->Sys);
		$map->AddMyPK();
		$map->AddTBString(BarEmpAttr::$FK_Bar, NULL, "信息块编�?",  TRUE ,  FALSE , 0, 90, 20);
		$map->AddTBString(BarEmpAttr::$FK_Emp, NULL, "人员编号",  TRUE ,  FALSE , 0, 90, 20);
		$map->AddTBString(BarEmpAttr::$Title, NULL, "标题",  TRUE ,  FALSE , 0, 3900, 20);
		$map->AddTBInt(BarEmpAttr::$IsShow, 1, "是否显示",  FALSE ,  TRUE );
		$map->AddTBInt(BarEmpAttr::$Idx, 0, "显示顺序",  FALSE ,  TRUE );
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	public function DoUp () 
	{
		$this->DoOrderUp(BarEmpAttr::$FK_Bar, $this->getFK_Bar(), BarEmpAttr::$Idx);
	}
	public function DoDown () 
	{
		$this->DoOrderDown(BarEmpAttr::$FK_Bar, $this->getFK_Bar(), BarEmpAttr::$Idx);
	}
	public function DoHidShow () 
	{
		$this->setIsShow($this->getIsShow());
		$this->Update();
	}
}
?>
